{% extends 'myadmin/base/obj_list.html' %}
{% load static %}
{% block search_form %}

{% endblock %}
{% block add_button %}
     <button type="button" class="btn btn-primary btn-sm"
                            data-url="{% url 'myadmin:course_cate_add' %}">添加
     </button>
    <button type="button" class="back">添加
     </button>



{% endblock %}

{% block table_content %}
    <section class="content-header">
    <h1>
        课程名
        <small>课程名</small>
    </h1>
</section>

    <tr>
{#        <th>#</th>#}
        <th>课程名</th>
{#        <th>标题</th>#}
{#        <th>课程名</th>#}
{#        <th>老师</th>#}
{#        <th>是否为示范视频</th>#}
{#        <th>是否为教学大纲</th>#}
        <th>所属课程类</th>
        <th>操作</th>
        <th>编辑</th>
    </tr>
    {% for obj in category %}
        <tr>
            <td style="width: 80px" data-name="{{obj.id}}" data-url="{% url 'myadmin:course_cate_detail' obj.id %}"><a href="#">{{ obj.name }}</a></td>
{#            <td style="width: 40px" data-url=""><a href="#">{{ forloop.counter }}</a></td>#}

            <td>{{ obj.category_type }}</td>

<td>
    <button class="btn btn-xs btn-danger btn-del" data-name="{{ obj.name}}" data-id="{{ obj.id}}">删除</button>
</td>
<td style="width: 40px" data-name="{{obj.id}}" data-url="{% url 'myadmin:course_cate_update' obj.id %}"><a href="#">编辑</a></td>
        </tr>
    {% endfor %}
              <div class="modal modal-danger fade" id="modal-delete">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">警告</h4>
                </div>
                <div class="modal-body">
                    <p>One fine body&hellip;</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline pull-left" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-outline delete-confirm">确定</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
        <script src="{% static 'js/myadmin/coursecategory/coursecategory.js' %}"></script>
{% endblock %}